// license-header java merge-point
/**
 * This is only generated once! It will never be overwritten.
 * You can (and have to!) safely modify it by hand.
 */
package edu.uoc.tfc.dbmodel.security;
/**
 * @see edu.uoc.tfc.dbmodel.security.Operation
 */
public class OperationDaoImpl
    extends edu.uoc.tfc.dbmodel.security.OperationDaoBase
{
    /**
     * @see edu.uoc.tfc.dbmodel.security.OperationDao#toOperationVO(edu.uoc.tfc.dbmodel.security.Operation, edu.uoc.tfc.dto.security.OperationVO)
     */
    public void toOperationVO(
        edu.uoc.tfc.dbmodel.security.Operation source,
        edu.uoc.tfc.dto.security.OperationVO target)
    {
        // @todo verify behavior of toOperationVO
        super.toOperationVO(source, target);
    }


    /**
     * @see edu.uoc.tfc.dbmodel.security.OperationDao#toOperationVO(edu.uoc.tfc.dbmodel.security.Operation)
     */
    public edu.uoc.tfc.dto.security.OperationVO toOperationVO(final edu.uoc.tfc.dbmodel.security.Operation entity)
    {
        // @todo verify behavior of toOperationVO
        return super.toOperationVO(entity);
    }


    /**
     * Retrieves the entity object that is associated with the specified value object
     * from the object store. If no such entity object exists in the object store,
     * a new, blank entity is created
     */
    private edu.uoc.tfc.dbmodel.security.Operation loadOperationFromOperationVO(edu.uoc.tfc.dto.security.OperationVO operationVO)
    {
        // @todo implement loadOperationFromOperationVO
        throw new java.lang.UnsupportedOperationException("edu.uoc.tfc.dbmodel.security.loadOperationFromOperationVO(edu.uoc.tfc.dto.security.OperationVO) not yet implemented.");

        /* A typical implementation looks like this:
        edu.uoc.tfc.dbmodel.security.Operation operation = this.load(operationVO.getId());
        if (operation == null)
        {
            operation = edu.uoc.tfc.dbmodel.security.Operation.Factory.newInstance();
        }
        return operation;
        */
    }

    
    /**
     * @see edu.uoc.tfc.dbmodel.security.OperationDao#operationVOToEntity(edu.uoc.tfc.dto.security.OperationVO)
     */
    public edu.uoc.tfc.dbmodel.security.Operation operationVOToEntity(edu.uoc.tfc.dto.security.OperationVO operationVO)
    {
        // @todo verify behavior of operationVOToEntity
        edu.uoc.tfc.dbmodel.security.Operation entity = this.loadOperationFromOperationVO(operationVO);
        this.operationVOToEntity(operationVO, entity, true);
        return entity;
    }


    /**
     * @see edu.uoc.tfc.dbmodel.security.OperationDao#operationVOToEntity(edu.uoc.tfc.dto.security.OperationVO, edu.uoc.tfc.dbmodel.security.Operation)
     */
    public void operationVOToEntity(
        edu.uoc.tfc.dto.security.OperationVO source,
        edu.uoc.tfc.dbmodel.security.Operation target,
        boolean copyIfNull)
    {
        // @todo verify behavior of operationVOToEntity
        super.operationVOToEntity(source, target, copyIfNull);
    }

}